//
//  LoginBackgroundView.m
//  us
//
//  Created by lhx on 2025/3/31.
//

#import "LoginBackgroundView.h"
@import Lottie;

@interface LoginBackgroundView ()


@end

@implementation LoginBackgroundView

- (void)awakeFromNib{
    [super awakeFromNib];
    
     [self.lottieWrapper addToView:self.lottieBgView];
 
}
- (void)layoutSubviews {
    [super layoutSubviews];
    self.lottieWrapper.frame = self.lottieBgView.bounds;
}

- (LottieWrapper *)lottieWrapper {
    if (_lottieWrapper == nil) {
        _lottieWrapper = [[LottieWrapper alloc] initWithName:@"lottie_login"];
        [_lottieWrapper setLoop:true];
    }
    return _lottieWrapper;
}


@end
